package com.yyn.Learning.mapper;

import com.yyn.Learning.dto.BaseMessageDto;
import com.yyn.Learning.dto.CoursePublish;
import com.yyn.Learning.dto.front.CourseDetailDto;
import com.yyn.Learning.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author yyn
 * @since 2022-11-19
 */
@Repository
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourse> {
List<BaseMessageDto> getCourse(String id);
CoursePublish getCoursePublish(String id);
List<EduCourse> getRecommendCourse();

    CourseDetailDto getCourseDetailDto(String courseId);
}
